FENNEL = /usr/bin/fennel
LUA_VERSION = 5.3
LUA_DIR = /usr/share/lua/$(LUA_VERSION)/

all: lispy-fennel.lua
.PHONY: all
lispy-fennel.lua: lispy-fennel.fnl
	$(FENNEL) --compile lispy-fennel.fnl > lispy-fennel.lua

install: lispy-fennel.lua
	cp -f lispy-fennel.lua $(LUA_DIR)

clean:
	rm lispy-fennel.lua
